<template>
	<view class="account-detail-item">
		<view class="top">
			<view class="l-title">{{item.remark}}</view>
			<view class="detail" :class="item.tradeAmount>0?'add':''">{{item.tradeAmount>0? '+' + item.tradeAmount:item.tradeAmount}}</view>
		</view>
		<view class="bottom">
			<view class="l-num">{{item.serialNumber}}</view>
			<view class="time">{{item.tradeTime}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: [Object, String],
				default: {}
			}
		},
		data() {
			return {
				typeOptions: {
					'1': '充值',
					'2': '提现',
					'3': '转赠',
					'4': '购买服务套餐',
					'5': '捐助项目',
					'6': '缴保证金'
				}
			}
		},
		created() {

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.account-detail-item{
		padding: 30rpx 0;
		border-bottom: 2rpx solid #DDD;
		.top{
			display: flex;
			margin-bottom: 20rpx;
			.l-title{
				font-size: 26rpx;
				width: 65%;
			}
			.detail{
				font-size: 26rpx;
				padding-left: 20rpx;
				text-align: right;
				flex: 1;
				min-width: 0;
				&.add{
					color: $uni-color-primary;
				}
			}
		}
		.bottom{
			display: flex;
			justify-content: space-between;
			.l-num{
				font-size: 20rpx;
				color: $uni-color-999;
			}
			.time{
				font-size: 20rpx;
				color: $uni-color-999;
			}
		}
	}
</style>
